package org.example.musicserver.controller;

import jakarta.annotation.Resource;
import jakarta.servlet.http.HttpSession;
import org.example.musicserver.common.Result;
import org.example.musicserver.service.AdminService;
import org.springframework.web.bind.annotation.*;


@RestController
public class AdminController {
    @Resource
    private AdminService adminService;

    // 判断是否登录成功
    @PostMapping("/admin/login/status")
    public Result loginStatus(@RequestParam String name, @RequestParam String password, HttpSession session) {
        return adminService.verityPasswd(name,password, session);
    }
}
